/**
 * @author JINMO
 * @since 2022/06/28 19:41
 */

package com.cskaoyan.service.admin;

import com.cskaoyan.bean.vo.BaseRespVo;
import com.cskaoyan.bean.MarketCart;
import com.cskaoyan.bean.bo.MarketCartCheckedBo;
import com.cskaoyan.bean.vo.cart.MarketCartCheckOutVo;
import com.cskaoyan.bean.vo.cart.MarketCartDeleteVo;

import java.util.List;
import java.util.Map;

public interface MarketCartService {

    //获取购物车的数据
    MarketCartDeleteVo index();

    //获得购物车指定id集合的数据，删除对应的购物车信息
    MarketCartDeleteVo delete(List<Integer> productIds);

    //添加商品到购物车,返回购物车的商品个数
    void add(MarketCart marketCart);

    //获取购物车商品件数
    Integer goodsCount();

    //选择或取消选择商品
    void checked(MarketCartCheckedBo marketCartCheckedBo);

    // 更新购物车 商品数量
    BaseRespVo update(Map map);

    //下单前信息确认
    MarketCartCheckOutVo checkout(MarketCartCheckOutVo marketCartCheckOutVo);

    //立即购买商品
    Integer fastadd(MarketCart marketCart);

}
